import request from '@/utils/request'

// 查询报警记录列表
export function listAiWarnHistory(query) {
    return request({
        url: '/video/aiWarnHistory/list',
        method: 'get',
        params: query
    })
}

// 查询报警记录详细
export function getAiWarnHistory(id) {
    return request({
        url: '/video/aiWarnHistory/' + id,
        method: 'get'
    })
}

// 新增报警记录
export function addAiWarnHistory(data) {
    return request({
        url: '/video/aiWarnHistory',
        method: 'post',
        data: data
    })
}

// 修改报警记录
export function updateAiWarnHistory(data) {
    return request({
        url: '/video/aiWarnHistory',
        method: 'put',
        data: data
    })
}

// 删除报警记录
export function delAiWarnHistory(id) {
    return request({
        url: '/video/aiWarnHistory/' + id,
        method: 'delete'
    })
}
